<extend name="Home@Base/common" />
<block name="body">
    <div class="span9 page_message">
        <section id="contents"> <include file="Home@Addons/_nav" />
            <div class="tab-content">
                <php> $post_url || $post_url = U('add?model='.$model['id'], $get_param);</php>
                <div class="form-horizontal form-center" method="post" action="{$post_url}" id="form">
                    <div class="form-item cf" style="float: left">
                        <label class="item-label"> <span class="need_flag">*</span>角色<span class="check-tips"></span></label>
                        <div class="controls">
                            <select name="role_id" multiple="true">
                                <volist name="role" id="vo">
                                    <option value="{$vo.id}" selected>{$vo.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <!--<div class="form-item cf" style="float: inherit">-->
                    <!--<label class="item-label"> <span class="need_flag">*</span>功能<span class="check-tips"></span></label>-->
                    <!--<div class="controls">-->
                    <!--<select name="node_id" multiple="true">-->
                    <!--<volist name="node" id="vo">-->
                    <!--<option value="{$vo.id}">{$vo.name}</option>-->
                    <!--</volist>-->
                    <!--</select>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="form-item cf" style="float: inherit">
                        <label class="item-label"> <span class="need_flag">*</span>角色<span class="check-tips"></span></label>
                        <div class="controls">
                            <volist name="node" id="vo">
                                <input type='checkbox' name='{$vo.name}' value=1 {$vo.check}>{$vo.name}<br>
                            </volist>
                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">管理<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-medium" name="admin" value="{$data.admin}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">读<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-medium" name="read" value="{$data.read}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">写<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-medium" name="write" value="{$data.write}">
                        </div>
                    </div>
                    <div class="form-item form_bh">
                        <input type="hidden" name="id" value="{$data.id}">
                        <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    </div>
                    </form>
                </div>
        </section>
    </div>
</block>
